package JavaBase;

import java.sql.SQLOutput;
import java.util.Scanner;

public class day1128exercise {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double sum=0;
        int i=0;
        while (sc.hasNextDouble()){
            double x = sc.nextDouble();
            i++;
            sum = sum +x;
        }
        System.out.println("个数"+i);
        System.out.println("平均数为"+sum/i);


        sc.close();
    }
}
